System, coding section, arrangement, coding apparatus, and method

ABSTRACT

Known systems use two probability signals for coding an input signal into an output signal and for decoding said output signal into the input signal. In a first memory field two probability signals are stored, and in a second memory field two other probability signals are stored, and in response to a further received symbol processor means adapt the probability signals. Such a system needs a giant memory capacity, which can be reduced by combining probability signals into a first combination signal to be stored in the first memory field and by combining further probability signals into a second combination signal to be stored in the second memory field, and by converting a third combination signal into at least one probability signal just before (de)coding takes place.

BACKGROUND OF THE INVENTION

The invention relates to a system comprising a first coding section for coding a first digital signal into a second digital signal and comprising a second coding section for decoding the second digital signal into a third digital signal, the first coding section and the second coding section being coupled via a transmission channel, the first coding section comprising

a first arrangement being provided with

an input for receiving the first digital signal comprising a number of symbols,

an output for generating a fourth digital signal comprising at least one probability signal,

a first coding apparatus being provided with

a first input for receiving the first digital signal comprising said number of symbols,

a second input for receiving the fourth digital signal originating from the first arrangement, and

an output for generating the second digital signal,

and the second coding section comprising

a second arrangement being provided with

an input for receiving the third digital signal comprising a number of symbols and originating from a second coding apparatus,

an output for generating a fifth digital signal comprising at least one probability signal,

the second coding apparatus being provided with

a first input for receiving the second digital signal originating from the first coding apparatus,

a second input for receiving the fifth digital signal originating from the second arrangement, and

an output for generating the third digital signal comprising said number of symbols,

the first coding section and the second coding section each being provided with

memory means comprising at least a first memory field and a second memory field for storing in the first memory field at least

first information relating to at least two probability signals, and

second information relating to at least a first number of symbols having a first value and a second number of symbols having a second value,

and for storing in the second memory field at least

third information relating to at least two probability signals, and

fourth information relating to at least a third number of symbols having a first value and a fourth number of symbols having a second value, and

processor means coupled to the memory means for adapting the information in response to a further received symbol.

Such a system is known from U.S. Pat. No. 5,023,611, which discloses the first coding section (encoder 101 in FIG. 1 of U.S. Pat. No. 5,023,611) comprising the first arrangement (context extractor 105 and probability estimator 106 in FIG. 1 of U.S. Pat. No. 5,023,611) and the first coding apparatus (entropy encoder unit 104 in FIG. 1 of U.S. Pat. No. 5,023,611), and which discloses the second coding section (decoder 103 in FIG. 1 of U.S. Pat. No. 5,023,611) comprising the second arrangement (context extractor 110 and probability estimator 111 in FIG. 1 of U.S. Pat. No. 5,023,611) and the second coding apparatus (entropy decoder unit 109 in FIG. 1 of U.S. Pat. No. 5,023,611). Both coding sections are coupled via a transmission channel (transmission media 102 in FIG. 1 of U.S. Pat. No. 5,023,611), and each comprise processor means (context extractor 105 comprises a computer or a digital signal processor as disclosed in column 3 lines 21-26 of U.S. Pat. No. 5,023,611, and context extractor 110 is identical to context extractor 105 as disclosed in column 7 lines 61-66 of U.S. Pat. No. 5,023,611). Such processor means will always be coupled to memory means which, as disclosed in IEEE Transactions on INFORMATION THEORY, May 1995, Volume 41, Number 3, in particular "The Context-Tree Weighting Method: Basic Properties", by F. M. J. Willems, Y. M. Shtarkov and T. J. Tjalkens, pages 653-664, will comprise at least a first memory field and a second memory field for storing in the first memory field at least first information relating to at least two probability signals (P_(e) (a_(s),b_(s)) and P_(w) ^(s) as disclosed on page 659 of the IEEE article) and second information relating to at least a first number of symbols having a first value and a second number of symbols having a second value and for storing in the second memory field at least third information relating to at least two probability signals and fourth information relating to at least a third number of symbols having a first value and a fourth number of symbols having a second value. In response to a further received symbol, the processor means adapt said information.

Such a system is disadvantageous because it needs a giant memory capacity inside the first arrangement as well as inside the second arrangement.

SUMMARY OF THE INVENTION

It is an object of the invention, inter alia, to provide a system as described in the preamble which needs less memory capacity.

The system according to the invention is characterised in that the first coding section and the second coding section are each provided with

combining means for combining at least two probability signals into a first combination signal, the first information being a function of this first combination signal, and for combining at least two probability signals into a second combination signal, the third information being a function of this second combination signal, and for combining at least two probability signals into a third combination signal, and

converting means for converting the third combination signal into at least one probability signal.

By providing the first arrangement as well as the second arrangement with combining means for combining at least two probability signals (by for example subtracting) into a first combination signal, the first information being a function of this first combination signal, and for combining at least two probability signals (by for example subtracting) into a second combination signal, the third information being a function of this second combination signal, and for combining at least two probability signals into a third combination signal, and by providing the first coding section as well as the second coding section with converting means for converting the third combination signal into at least one probability signal, the system according to the invention needs less memory capacity.

The invention is based, inter alia, on the insight that inside each arrangement it is sufficient to store only one combination signal instead of two probability signals, and that inside each coding apparatus (or possibly each arrangement) said third combination signal can be converted into one or more probability signals by using knowledge which is already present inside each coding apparatus (or possibly each arrangement).

The problem of known systems needing giant memory capacity is solved by storing only one combination signal instead of two probability signals, which reduces the needed memory capacity. A further reduction can be realised by establishing logarithmic representations of probability signals and using these logarithmic representations for the calculations, and by lopping off probability signals and/or logarithmic representations of these probability signals.

A first embodiment of the system according to the invention is characterised in that the first combination signal comprises a ratio of probability signals, and that the second combination signal comprises a ratio of probability signals.

By generating the first combination signal being a ratio of probability signals, and generating the second combination signal being a ratio of probability signals, on the one hand combination signals are created which possess the value one substantially (apart from other factors) in case both probability signals possess the same value substantially, and on the other hand combination signals are created which possess a value which is much greater or smaller than one (apart from other factors) in case both probability values differ a lot. Because of using ratios, firstly the lopping off becomes an interesting technique (all ratios<0.01 could be defined as being equal to 0.01, and all ratios>100 could be defined as being equal to 100), and secondly the use of logarithmic representations becomes another interesting technique, due to the fact that multiplying becomes adding and dividing becomes subtracting.

The invention further relates to a coding section for coding a first digital signal into a second digital signal, the first coding section comprising

a first arrangement being provided with

an input for receiving the first digital signal comprising a number of symbols,

an output for generating a fourth digital signal comprising at least one probability signal,

a first coding apparatus being provided with

a first input for receiving the first digital signal comprising said number of symbols,

a second input for receiving the fourth digital signal originating from the first arrangement, and

an output for generating the second digital signal, the coding section being provided with

memory means comprising at least a first memory field and a second memory field for storing in the first memory field at least

first information relating to at least two probability signals, and

second information relating to at least a first number of symbols having a first value and a second number of symbols having a second value,

and for storing in the second memory field at least

third information relating to at least two probability signals, and

fourth information relating to at least a third number of symbols having a first value and a fourth number of symbols having a second value, and

processor means coupled to the memory means for adapting the information in response to a further received symbol.

The coding section according to the invention is characterised in that the coding section is provided with

combining means for combining at least two probability signals into a first combination signal, the first information being a function of this first combination signal, and for combining at least two probability signals into a second combination signal, the third information being a function of this second combination signal, and for combining at least two probability signals into a third combination signal, and

converting means for converting the third combination signal into at least one probability signal.

A first embodiment of the coding section according to the invention is characterised in that the first combination signal comprises a ratio of probability signals, and that the second combination signal comprises a ratio of probability signals.

The invention further relates to an arrangement comprising

an input for receiving a first digital signal comprising a number of symbols,

an output for generating a fourth digital signal comprising at least one probability signal,

memory means comprising at least a first memory field and a second memory field for storing in the first memory field at least

first information relating to at least two probability signals, and

second information relating to at least a first number of symbols having a first value and a second number of symbols having a second value,

and for storing in the second memory field at least

third information relating to at least two probability signals, and

fourth information relating to at least a third number of symbols having a first value and a fourth number of symbols having a second value, and

processor means coupled to the memory means for adapting the information in response to a further received symbol.

The arrangement according to the invention is characterised in that the arrangement is provided with

combining means for combining at least two probability signals into a first combination signal, the first information being a function of this first combination signal, and for combining at least two probability signals into a second combination signal, the third information being a function of this second combination signal.

A first embodiment of the arrangement according to the invention is characterised in that the first combination signal comprises a ratio of probability signals, and that the second combination signal comprises a ratio of probability signals.

The invention further relates to a coding apparatus comprising

a first input for receiving a first digital signal comprising a number of symbols,

a second input for receiving a fourth digital signal comprising at least one probability signal and originating from an arrangement, and

an output for generating a second digital signal.

The coding apparatus according to the invention is characterised in that the fourth digital signal comprises a third combination signal being a combination of at least two probability signals, the coding apparatus being provided with

converting means for converting the third combination signal into at least one probability signal.

A first embodiment of the coding apparatus according to the invention is characterised in that the third combination signal comprises a ratio of probability signals.

The invention further relates to a method for coding a first digital signal into a second digital signal and for decoding the second digital signal into a third digital signal, the method comprising the steps of

receiving the first digital signal comprising a number of symbols,

generating, in response to the first digital signal, a fourth digital signal comprising at least one probability signal,

coding the first digital signal into the second digital signal by using the fourth digital signal,

generating, in response to the third digital signal, a fifth digital signal comprising at least one probability signal,

decoding the second digital signal into the third digital signal by using the fifth digital signal,

storing in a first memory field at least first information relating to at least two probability signals, and second information relating to at least a first number of symbols having a first value and a second number of symbols having a second value,

storing in a second memory field at least third information relating to at least two probability signals, and fourth information relating to at least a third number of symbols having a first value and a fourth number of symbols having a second value, and

adapting the information in response to a further received symbol.

Such a method is known from a combination of U.S. Pat. No. 5,023,611 and IEEE Transactions on INFORMATION THEORY, May 1995, Volume 41, Number 3, in particular "The Context-Tree Weighting Method: Basic Properties", by F. M. J. Willems, Y. M. Shtarkov and T. J. Tjalkens, pages 653-664.

Such a method is disadvantageous because it needs a giant memory capacity.

It is a further object of the invention, inter alia, to provide a method as described before which needs less memory capacity.

The method according to the invention is characterised in that the method comprises the steps of

combining at least two probability signals into a first combination signal, the first information being a function of this first combination signal,

combining at least two probability signals into a second combination signal, the third information being a function of this second combination signal,

combining at least two probability signals into a third combination signal, and

converting the third combination signal into at least one probability signal.

A first embodiment of the method according to the invention is characterised in that the first combination signal comprises a ratio of probability signals, and that the second combination signal comprises a ratio of probability signals.

REFERENCES

U.S. Pat. No. 5,023,611.

IEEE Transactions on INFORMATION THEORY, May 1995, Volume 41, Number 3, in particular "The Context-Tree Weighting Method: Basic Properties", by F. M. J. Willems, Y. M. Shtarkov and T. J. Tjalkens, pages 653-664.

U.S. Pat. No. 5,025,258.

U.S. Pat. No. 4,286,256.

U.S. Pat. No. 4,494,108.

U.S. Pat. No. 5,357,250.

All references including the references cited in these references are considered to be incorporated in this patent application.

EMBODIMENT

The invention will be explained at the hand of an embodiment shown in the figures:

FIG. 1 shows a system according to the invention,

FIG. 2 shows memory means comprising memory fields,

FIG. 3 depicts a flow chart illustrating a context tree weighting algorithm.

The system according to the invention as shown in FIG. 1 comprises a first coding section 1 for coding a first digital signal into a second digital signal and comprises a second coding section 11 for decoding the second digital signal into a third digital signal. The first coding section 1 and the second coding section 11 are coupled via a transmission channel 10. The first coding section 1 is provided with an input 2 for receiving the first digital signal and with an output 3 for generating the second digital signal and comprises a first coding apparatus 4 and a first arrangement 5. A first input 6 of the first coding apparatus 4 is coupled to the input 2 for receiving the first digital signal comprising a number of symbols. A second input 8 of the first coding apparatus 4 is coupled to an output of the first arrangement 5 for receiving a fourth digital signal comprising at least one probability signal for each symbol to be coded. An output 9 of the first coding apparatus 4 is coupled to the output 3 for generating the second digital signal. An input 7 of the first arrangement 5 is coupled to the input 2 for receiving the first digital signal comprising said number of symbols. The second coding section 11 is provided with an input 12 for receiving the second digital signal and with an output 13 for generating the third digital signal comprising a number of symbols and comprises a second coding apparatus 14 and a second arrangement 15. A first input 16 of the second coding apparatus 14 is coupled to the input 12 for receiving the second digital signal. A second input 18 of the second coding apparatus 14 is coupled to an output of the second arrangement 15 for receiving a fifth digital signal comprising at least one probability signal for each symbol to be decoded. An output 19 of the second coding apparatus 14 is coupled to the output 13 for generating the third digital signal. An input 17 of the second arrangement 15 is coupled to the output 19 for receiving the third digital signal. The first coding section 1 and the second coding section 11 are each provided with memory means comprising memory fields and with processor means coupled to the memory means. Said processor means adapt information stored in said memory means in response to a further received symbol of the first/third digital signal.

The memory means 20 shown in FIG. 2 comprise eight memory fields 21-28. In the first memory field 21 first information β₁ is stored relating to at least a first probability signal and a second probability signal, and second information a₁,b₁ is stored relating to at least a first number of symbols having a first value and a second number of symbols having a second value. In the second memory field 22 third information β₂ is stored relating to at least a third probability signal and a fourth probability signal, and fourth information a₂,b₂ is stored relating to at least a third number of symbols having a first value and a fourth number of symbols having a second value, etc.

The flow chart depicted in FIG. 3 illustrates a context tree weighting algorithm, which tree is also shown in FIG. 3. This tree comprises seven nodes, a first node 21, a second node 22 coupled to the first node 21 via a link characterised by the symbol "1", a third node 23 coupled to the first node 21 via a link characterised by the symbol "0", a fourth node 24 coupled to the second node 22 via a link characterised by the symbol "1", a fifth node 25 coupled to the second node 22 via a link characterised by the symbol "0", a sixth node 26 coupled to the third node 23 via a link characterised by the symbol "1", and a seventh node 27 coupled to the third node 23 via a link characterised by the symbol "0". The flow chart consists of blocks 30-44 having the following meaning:

block 30: does the received symbol have the value "1"? if yes, go to block 31, if no, go to block 32

block 31: (corresponding with node 21) does the previously received symbol have the value "1"? if yes, go to block 33 (node 22), if no, go to block 34 (node 23)

block 32: (corresponding with node 21) does the previously received symbol have the value "1"? if yes, go to block 35 (node 22), if no, go to block 36 (node 23)

block 33: (corresponding with node 22) does the further previously received symbol have the value "1"? if yes, go to block 37 (node 24), if no, go to block 38 (node 25)

block 34: (corresponding with node 23) does the further previously received symbol have the value "1"? if yes, go to block 39 (node 26), if no, go to block 40 (node 27)

block 35: (corresponding with node 22) does the further previously received symbol have the value "1"? if yes, go to block 41 (node 24), if no, go to block 42 (node 25)

block 36: (corresponding with node 23) does the further previously received symbol have the value "1"? if yes, go to block 43 (node 26), if no, go to block 44 (node 27)

block 37: μ₄ =(a₄ +0,5)/(b₄ +0,5)

b₄ :=b₄ +1

P_(w) ⁴ (0)=μ₄ /(1+μ₄)

P_(w) ⁴ (1)=1/(1+μ₄)

P_(e) ² (0)=(a₂ +0,5)/(a₂ +b₂ +1)

P_(e) ² (1)=(b₂ +0,5)/(a₂ +b₂ +1)

μ₂ ={β₂ *P_(e) ² (0)+P_(w) ⁴ (0)}/{(β₂ *P_(e) ² (1)+P_(w) ⁴ (1)}

β₂ :={β₂ *P_(e) ² (1)}/P_(w) ⁴ (1)

b₂ :=b₂ +1

P_(w) ² (0)=μ₂ /(1+μ₂)

P_(w) ² (1)=1/(1+μ₂)

P_(e) ¹ (0)=(a₁ +0,5)/(a₁ +b₁ +1)

P_(e) ¹ (1)=(b₁ +0,5)/(a₁ +b₁ +1)

μ₁ ={β₁ *P_(e) ¹ (0)+P_(w) ² (1)}/{β₁ *P_(e) ¹ (0)+P_(w) ² (1)}

β₁ :={β₁ *P_(e) ¹ (1)}/P_(w) ² (1)

b₁ :=b₁ +1

block 38: μ₅ =(a₅ +0,5)/(b₅ +0,5)

b₅ :=b₅ +1

P_(w) ⁵ (0)=μ₅ /(1+μ₅)

P_(w) ⁵ (1)=1/(1+μ₅)

P_(e) ² (0)=(a₂ +0,5)/(a₂ +b₂ +1)

P_(e) ² (1)=(b₂ +0,5)/(a₂ +b₂ +1)

μ₂ ={β₂ *P_(e) ² (0)+P_(w) ⁵ (0)}/{β₂ *P_(e) ² (1)+P_(w) ⁵ (1)}

β₂ :={β₂ *P_(e) ² (1)}/P_(w) ⁵ (1)

b₂ :=b₂ +1

P_(w) ² (0)=μ₂ /(1+μ₂)

P_(w) ² (1)=1/(1+μ₂)

P_(e) ¹ (0)=(b₁ +0,5)/(a₁ +b₁ +1)

P_(e) ¹ (1)=(b₁ +0,5)/(a₁ +b₁ +1)

μ₁ ={β₁ *P_(e) ¹ (0)+P_(w) ² (0)}/{β₁ *P_(e) ¹ (1)+P_(w) ² (1)}

β₁ :={β₁ *P_(e) ¹ (1)}/P_(w) ² (1)

b₁ :=b₁ +1

block 39: μ₆ =(a₆ +0,5)/(b₆ +0,5)

b₆ :=b₆ +1

P_(w) ⁶ (0)=μ₆ /(1+μ₆)

P_(w) ⁶ (1)=1/(1+μ₆)

P_(e) ³ (0)=(a₃ +0,5)/(a₃ +b₃ +1)

P_(e) ³ (1)=(b₃ +0,5)/(a₃ +b₃ +1)

μ₃ ={β₃ *P_(e) ³ (0)+P_(w) ⁶ (0)}/{β₃ *P_(e) ³ (1)+P_(w) ⁶ (1)}

β₃ :={β₃ *P_(e) ³ (1)}/P_(w) ⁶ (1)

b₃ :=b₃ +1

P_(w) ³ (0)=μ₃ /(1+μ₃)

P_(w) ³ (1)=1/(1+μ₃)

P_(e) ¹ (0)=(a₁ +0,5)/(a₁ +b₁ +1)

P_(e) ¹ (1)=(b₁ +0,5)/(a₁ +b₁ +1)

μ₁ ={β₁ *P_(e) ¹ (0)+P_(w) ³ (0)}/{β₁ *P_(e) ¹ (1)+P_(w) ³ (1)}

β₁ :={β₁ *P_(e) ¹ (1)}/P_(w) ³ (1)

b₁ :=b₁ +1

block 40: μ₇ =(a₇ +0,5)/(b₇ +0,5)

b₇ :=b₇ +1

P_(w) ⁷ (0)=μ₇ /(1+μ₇)

P_(w) ⁷ (1)=1/(1+μ₇)

P_(e) ³ (0)=(a₃ +0,5)/(a₃ +b₃ +1)

P_(e) ³ (1)=(b₃ +0,5)/(a₃ +b₃ +1)

μ₃ ={β₃ *P_(e) ³ (0)+P_(w) ⁷ (0)}/{β₃ *P_(e) ³ (1)+P_(w) ⁷ (1)}

β₃ :={β₃ *P_(e) ³ (1)}/P_(w) ⁷ (1)

b₃ :=b₃ +1

P_(w) ³ (0)=μ₃ /(1+μ₃)

P_(w) ³ (1)=1/(1+μ₃)

P_(e) ¹ (0)=(a₁ +0,5)/(a₁ +b₁ +1)

P_(e) ¹ (1)=(b₁ +0,5)/(a₁ +b₁ +1)

μ₁ ={β₁ *P_(e) ¹ (0)+P_(w) ³ (0)}/{β₁ *P_(e) ¹ (1)+P_(w) ³ (1)}

β₁ :={β₁ *P_(e) ¹ (1)}/P_(w) ³ (1)

b₁ :=b₁ +1

block 41: μ₄ =(a₄ +0,5)/(b₄ +0,5)

a₄ :=₄ +1

P_(w) ⁴ (0)=μ₄ /(1+μ₄)

P_(w) ⁴ (1)=1/(1+μ₄)

P_(e) ² (0)=(a₂ +0,5)/(a₂ +b₂ +1)

P_(e) ² (1)=(b₂ +0,5)/(a₂ +b₂ +1)

μ₂ ={β₂ *P_(e) ² (0)+P_(w) ⁴ (0)}/{β₂ *P_(e) ² (1)+P_(w) ⁴ (1)}

β₂ :={β₂ *P_(e) ² (0)}/P_(w) ⁴ (0)

a₂ :=a₂ +1

P_(w) ² (0)=μ₂ /(1+μ₂)

P_(w) ² (1)=1/(1+μ₂)

P_(e) ¹ (0)=(a₁ +0,5)/(a₁ +b₁ +1)

P_(e) ¹ (1)=(b₁ +0,5)/(a₁ +b₁ +1)

μ₁ ={β₁ *P_(e) ¹ (0)+P_(w) ² (0)}/{β₁ *P_(e) ¹ (1)+P_(w) ² (1)}

β₁ :={β₁ *P_(e) ¹ (0)}/P_(w) ² (0)

a₁ :=a₁ +1

block 42: μ₅ =(a₅ +0,5)/(b₅ +0,5)

a₅ :=a₅ +1

P_(w) ⁵ (0)=μ₅ /(1+μ₅)

P_(w) ⁵ (1)=1/(1+μ₅)

P_(e) ² (0)=(a₂ +0,5)/(a₂ +b₂ +1)

P_(e) ² (1)=(b₂ +0,5)/(a₂ +b₂ +1)

μ₂ ={β₂ *P_(e) ² (0)+P_(w) ⁵ (0)}/{β₂ *P_(e) ² (1)+P_(w) ⁵ (1)}

β₂ :={β₂ *P_(e) ² (0)}/P_(w) ⁵ (0)

a₂ :=a₂ +1

P_(w) ² (0)=μ₂ /(1+μ₂)

P_(w) ² (1)=1/(1+μ₂)

P_(e) ¹ (0)=(a₁ +0,5)/(a₁ +b₁ +1)

P_(e) ¹ (1)=(b₁ +0,5)/(a₁ +b₁ +1)

μ₁ ={β₁ *P_(e) ¹ (0)+P_(w) ² (0)}/{β₁ *P_(e) ¹ (1)+P_(w) ² (1)}

β₁ :={β₁ *P_(e) ¹ (0)}/P_(w) ² (0)

a₁ :=a₁ +1

block 43: μ₆ =(a₆ +0,5)/(b₆ +0,5)

a₆ :=a₆ +1

P_(w) ⁶ (0)=μ₆ /(1+μ₆)

P_(w) ⁶ (1)=1/(1+μ₆)

P_(e) ³ (0)=(a₃ +0,5)/(a₃ +b₃ +1)

P_(e) ³ (1)=(b₃ +0,5)/(a₃ +b₃ +1)

μ₃ ={β₃ *P_(e) ³ (0)+P_(w) ⁶ (0)}/{β₃ *P_(e) ³ (1)+P_(w) ⁶ (1)}

β₃ :={β₃ *P_(e) ³ (0)}/P_(w) ⁶ (0)

a₃ :=a₃ +1

P_(w) ³ (0)=μ₃ /(1+μ₃)

P_(w) ³ (1)=1/(1+μ₃)

P_(e) ¹ (0)=(a₁ +0,5)/(a₁ +b₁ +1)

P_(e) ¹ (1)=(b₁ +0,5)/(a₁ +b₁ +1)

μ₁ ={β₁ *P_(e) ¹ (0)+P_(w) ³ (0)}/{β₁ *P_(e) ¹ (1)+P_(w) ³ (1)}

β₁ :={β₁ *P_(e) ¹ (0)}/P_(w) ³ (0)

a₁ :=a₁ +1

block 44: μ₇ =(a₇ +0,5)/(b₇ +0,5)

a₇ :=a₇ +1

P_(w) ⁷ (0)=μ₇ /(1+μ₇)

P_(w) ⁷ (1)=1/(1+μ₇)

P_(e) ³ (0)=(a₃ +0,5)/(a₃ +b₃ +1)

P_(e) ³ (1)=(b₃ +0,5)/(a₃ +b₃ +1)

μ₃ ={β₃ *P_(e) ³ (0)+P_(w) ⁷ (0)}/{β₃ *P_(e) ³ (1)+P_(w) ⁷ (1)}

β₃ :={β₃ *P_(e) ³ (0)}/P_(w) ⁷ (0)

a₃ :=a₃ +1

P_(w) ³ (0)=μ₃ /(1+μ₃)

P_(w) ³ (1)=1/(1+μ₃)

P_(e) ¹ (0)=(a₁ +0,5)/(a₁ +b₁ +1)

P_(e) ¹ (1)=(b₁ +0,5)/(a₁ +b₁ +1)

μ₁ ={β₁ *P_(e) ¹ (0)+P_(w) ³ (0)}/{β₁ *P_(e) ¹ (1)+P_(w) ³ (1)}

β₁ :={β₁ *P_(e) ¹ (0)}/P_(w) ³ (0)

a₁ :=a₁ +1

The operation of the first arrangement 5 comprising the memory means 20 is, in view of the flow chart and the tree depicted in FIG. 3, as follows. Suppose the first digital signal comprises, during a certain time interval, the symbols 0011100100101. In that case, the last received symbol has the value "1", the previously received symbol has the value "0" and the further previously received symbol has the value "1". This corresponds, in the flow chart, to the blocks 30, 31, 34 and 39, and in the tree, to the nodes 21, 23 and 26. As a consequence of this situation, the following calculations are made by the processor means (P_(e) ^(i) and P_(w) ^(j) in this case being conditional probabilities):

μ₆ =(a₆ +0,5)/(b₆ +0,5): the processor means will first read out the values of a₆ and b₆ from the sixth memory field 26 and will then calculate the value of μ₆ with respect to node 26;

b₆ :=b₆ +1: the processor means subsequently increase the value of b₆ by one and store this new value of b₆ in the sixth memory field 26 (only the value of b₆ is increased because the last received symbol has the value "1", in case the last received symbol would have had the value "0" only the value of a₆ would have been increased);

P_(w) ⁶ (0)=μ₆ /(1+μ₆): with respect to node 23, the processor means calculate P_(w) ⁶ (0) at the hand of the calculated value of μ₆ ;

P_(w) ⁶ (1)=1/(1+μ₆): with respect to node 23, the processor means calculate P_(w) ⁶ (0) at the hand of the calculated value of μ₆ ;

P_(e) ³ (0)=(a₃ +0,5)/(a₃ +b₃ +1): the processor means will first read out the values of a₃ and b₃ from the third memory field 23 and will then calculate the value of P_(e) ³ (0) with respect to node 23;

P_(e) ³ (1)=(b₃ +0,5)/(a₃ +b₃ +1): the processor means will first read out the values of a₃ and b₃ from the third memory field 23 and will then calculate the value of P_(e) ³ (1) with respect to node 23;

μ₃ ={β₃ *P_(e) ³ (0)+P_(w) ⁶ (0)}/{β₃ *P_(e) ³ (1)+P_(w) ⁶ (1)}: the processor means will first read out the value of β₃ from the third memory field 23 and will then calculate the value of μ₃ at the hand of the stored value of β₃ and the calculated values of P_(e) ³ (0), P_(w) ⁶ (0), P_(e) ³ (1) and P_(w) ⁶ (1);

β₃ :={β₃ *P_(e) ³ (1)}/P_(w) ⁶ (1): the processor means update the value of β₃ at the hand of the old, stored value of β₃ and the calculated values of P_(e) ³ (1) and P_(w) ⁶ (1) and store the new value of β₃ (a second combination signal) in the third memory field 23 (in case the last received symbol would have had the value "0" the values of P_(e) ³ (0) and P_(w) ⁶ (0) would have been used);

b₃ :=b₃ +1: the processor means subsequently increase the value of b₃ by one and store this new value of b₃ in the third memory field 23 (only the value of b₃ is increased because the last received symbol has the value "1", in case the last received symbol would have had the value "0" only the value of a₃ would have been increased);

P_(w) ³ (0)=μ₃ /(1+μ₃): with respect to node 21, the processor means calculate the value of P_(w) ³ (0) at the hand of the calculated value of μ₃ ;

P_(w) ³ (1)=1/(1+μ₃): with respect to node 21, the processor means calculate the value of P_(w) ³ (1) at the hand of the calculated value of μ₃ ;

P_(e) ¹ (0)=(a₁ +0,5)/(a₁ +b₁ +1: the processor means will first read out the values of a₁ and b₁ from the first memory field 21 and will then calculate the value of P_(e) ¹ (0) with respect to node 21;

P_(e) ¹ (1)=(b₁ +0,5)/(a₁ +b₁ +1: the processor means will first read out the values of a₁ and b₁ from the first memory field 21 and will then calculate the value of P_(e) ¹ (1) with respect to node 21;

μ₁ ={β₁ *P_(e) ¹ (0)+P_(w) ³ (0)}/{β₁ *P_(e) ¹ (1)+P_(w) ³ (1)}: the processor means will first read out the value of β₁ from the first memory field 21 and will then calculate the value of μ₁ (a third combination signal) at the hand of the stored value of β₁ and the calculated values of P_(e) ¹ (0), P_(w) ³ (0), P_(e) ¹ (1) and P_(w) ³ (1);

β₁ :={β₁ *P_(e) ¹ (1)}/P_(w) ³ (1): the processor means update the value of β₁ at the hand of the old, stored value of β₁ and the calculated values of P_(e) ¹ (1) and P_(w) ³ (1) and store the new value of β₁ (a first combination signal) in the first memory field 21 (in case the last received symbol would have had the value "0" the values of P_(e) ¹ (0) and P_(w) ³ (0) would have been used);

b₁ :=b₁ +1: the processor means subsequently increase the value of b₁ by one and store this new value of b₁ in the first memory field 21 (only the value of b₁ is increased because the last received symbol has the value "1", in case the last received symbol would have had the value "0" only the value of a₁ would have been increased);

So, in dependence of the last received symbol and previously received symbols (the context, in this case defined by two previously received symbols, the depth of the tree being equal to the value "2") β's and μ's are calculated. Due to using β and μ, each β being a combination signal which is stored instead of several probability signals, and each μ being a combination signal which especially in a more complex situation is used for communication between nodes, the needed memory capacity is reduced. As stated before, a further reduction can be realised by establishing logarithmic representations of probability signals and of each β and μ and using these logarithmic representations for the calculations, and by lopping off probability signals and β and μ and/or lopping off said logarithmic representations.

According to a first embodiment, the first arrangement 5 generates at its output μ₁ (the third combination signal in this case being equal to the fourth digital signal), which is supplied to the second input 8 of the first coding apparatus 4 as the fourth digital signal. In that case, the first coding apparatus 4 could comprise said conversion means for converting μ₁ into said probability.

According to a second embodiment, the first coding apparatus 4 being a known encoder, a probability signal (for example comprising P_(w) ¹ (1) and P_(w) ¹ (0)) should be supplied to the second input 8 as the fourth digital signal. The known encoder 4 then codes the first digital signal comprising a number of symbols and arriving at the first input 6 at the hand of this probability signal, whereby P_(w) ¹ (1) and P_(w) ¹ (0) are calculated for each received symbol by using the formulaes P_(w) ¹ (0)=μ₁ /(1+μ₁) and P_(w) ¹ (1)=1/(1+μ₁). In that case, the first arrangement 5 should comprise conversion means for converting μ₁ (the third combination signal) into this probability and for generating this probability (the fourth digital signal) at the output of the first arrangement 5.

The operation of the second arrangement 15 is in correspondence with the operation of the first arrangement 5, apart from the following. Due to the fact that the input 17 of the second arrangement 15 is coupled to the output 19 of the second coding apparatus 14 (compare the input 7 of first arrangement 5 being coupled to the first input 6 of the first coding apparatus 4), the operation of the second arrangement 15 will not perform the function disclosed by block 30 depicted in FIG. 3. Therefore the second arrangement 15 cannot distinguish between blocks 37 and 41, between 38 and 42, between 39 and 43 and between 40 and 44. As a consequence of this, with respect to the functions disclosed by the blocks 37-44, it will not immediately be possible to increase a's and/or b's and/or to adapt β's, but this can be done at a later time, after decoding has taken place.

The invention should not be limited to the coding and decoding of signals comprising symbols having a first or a second value (socalled binary symbols). To a person skilled in the art it will be obvious that the invention can also be used for the coding and decoding of signals comprising symbols having one out of three or more values. For example, in case of symbols having a first, a second or a third value, for each node there will be three conditional weighted probabilities, three conditional estimated probabilities and two μ's and one β.

The flow chart depicted in FIG. 3 illustrates a context tree weighting algorithm, which tree is also shown in FIG. 3 having a depth being equal to the value "2". Usually, trees will for example have a depth being equal to a value "20". Then the number of nodes will be 2²¹ -1, and the flow chart will comprise 2²¹ final blocks, instead of eight blocks 37-44. In that case it will be clear that another type of flow chart should be used, which another type of flow chart should for example comprise a socalled "loop". Then a number of memory fields could be allocated dynamically.

As stated above, in this case the context is defined by two previously received symbols. Of course, it will be also possible to use another signal as the context, for example symbols which have been received before said two previously received symbols, like in case of videocoding, for example the signal belonging to another videoline or another videochannel. Further it is possible that the context comprises nonbinary symbols. In that case, as will be clear to a person skilled in the art, either in the tree there will be more than two nodes (for example eight nodes) coupled to a higher node, or in the tree there will be socalled "fake-nodes".

It is assumed that the second digital signal generated at the output of the first coding apparatus 4 is equal to the second digital signal arrived at the first input of the second coding apparatus 14. In other words, the transmission channel should be errorfree, which can be guaranteed by using techniques known to a person skilled in the art. Then, in case the first coding section 1 and the second coding section 11 are matched, the first digital signal will be equal to the third digital signal.

Instead of storing, per node, the values of "a" and "b", it will also be possible to store, for example "a-b" and "a+b" (whereby it should even not be excluded that the value of "a+b" will be a fixed, predefined value during some time). Therefore, in general, second (fourth) information will be stored relating to at least a first (third) number of symbols having a first value and a second (fourth) number of symbols having a second value. Further, at the beginning, "a", "b" and β should be initiated, a possible initialisation being a=0, b=0 and β=1. 

What is claimed is:
 1. Coding system (1) for adaptive, context-dependent data-compression coding a first digital signal (2) into a second digital signal (3), the coding system comprising:a first arrangement (5), a context extractor and probability estimator, being provided withan input (7) for receiving the first digital signal comprising a number of symbols, an output (8) for generating a fourth digital signal comprising at least one probability signal, an estimated probability signal, a first coding apparatus (4), an entropy encoder, being provided witha first input (6) for receiving the first digital signal comprising said number of symbols, a second input (8) for receiving the fourth digital signal originating from the first arrangement, and an output (9) for generating the second digital signal,the coding section being provided with memory means (20) comprising at least a first memory field (21) and a second memory field (22) for storing in the first memory field at leastfirst information (B1) relating to at least two probability signals, and second information (a₁,b₁) relating to at least a first number of symbols having a first value and a second number of symbols having a second value, and for storing in the second memory field at least third information (B2) relating to at least two probability signals, and fourth information (a₂,b₂) relating to at least a third number of symbols having a first value and a fourth number of symbols having a second value, and processor means coupled to the memory means (20) for adapting the information in response to a further received symbol,characterized in that the coding section is provided with combining means for combining at least two probability signals into a first combination signal, the first information (B1) being a function of this first combination signal, and for combining at least two probability signals into a second combination signal, the third information (B2) being a function of this second combination signal, and for combining at least two probability signals into a third combination signal, and converting means for converting the third combination signal into at least one probability signal.
 2. The coding system according to claim 1, characterized in that the first combination signal comprises a ratio of probability signals, and that the second combination signal also comprises a ratio of probability signals.
 3. A system comprising a first coding section (1) according to claim 1 for coding a first digital signal into a second digital signal and comprising a second coding section (11) for decoding the second digital signal into a third digital signal, the first coding section and the second coding section being coupled via a transmission channel,the second coding section (11) comprising: a second arrangement (15), a context extractor and probability estimator, being provided withan input for receiving the third digital signal comprising a number of symbols and originating from a second coding apparatus (14), an output for generating a fifth digital signal comprising at least one probability signal, the second coding apparatus (14), an entropy decoder, being provided witha first input for receiving the second digital signal originating from the first coding apparatus, a second input for receiving the fifth digital signal originating from the second arrangement, and an output for generating the third digital signal comprising said number of symbols, the second coding section being provided with memory means (20) comprising at least a first memory field (21) and a second memory field (22) for storing in the first memory field (21) at leastfirst information (B1) relating to at least two probability signals, and second information (a₁,b₁) relating to at least a first number of symbols having a first value and a second number of symbols having a second value, and for storing in the second memory (22) field at least third information (B2) relating to at least two probability signals, and fourth information (a₂,b₂) relating to at least a third number of symbols having a first value and a fourth number of symbols having a second value, and processor means coupled to the memory means (20) for adapting the information in response to a further received symbol,characterized in that the second coding section is provided with combining means for combining at least two probability signals into a first combination signal, the first information (B1) being a function of this first combination signal, and for combining at least two probability signals into a second combination signal, the third information (B2) being a function of this second combination signal, and for combining at least two probability signals into a third combination signal, and converting means for converting the third combination signal into at least one probability signal.
 4. A system comprising a first coding section (1) according to claim 2 for coding a first digital signal into a second digital signal and comprising a second coding section (11) for decoding the second digital signal into a third digital signal, the first coding section and the second coding section being coupled via a transmission channel,the second coding section (11) comprising: a second arrangement (15), a context extractor and probability estimator, being provided withan input for receiving the third digital signal comprising a number of symbols and originating from a second coding apparatus (14), an output for generating a fifth digital signal comprising at least one probability signal, the second coding apparatus (14), an entropy decoder, being provided witha first input for receiving the second digital signal originating from the first coding apparatus, a second input for receiving the fifth digital signal originating from the second arrangement, and an output for generating the third digital signal comprising said number of symbols, the second coding section being provided with memory means (2) comprising at least a first memory field (21) and a second memory field (22) for storing in the first memory field (21) at leastfirst information (B1) relating to at least two probability signals, and second information (a₁,b₁) relating to at least a first number of symbols having a first value and a second number of symbols having a second value, and for storing in the second memory (22) field at least third information (B2) relating to at least two probability signals, and fourth information (a₂,b₂) relating to at least a third number of symbols having a first value and a fourth number of symbols having a second value, and processor means coupled to the memory means (2) for adapting the information in response to a further received symbol,characterized in that the second coding section is provided with combining means for combining at least two probability signals into a first combination signal, the first information (B1) being a function of this first combination signal, and for combining at least two probability signals into a second combination signal, the third information (B2) being a function of this second combination signal, and for combining at least two probability signals into a third combination signal, and converting means for converting the third combination signal into at least one probability signal.
 5. A system according to claim 3, characterized in that the first combination signal comprises a ratio of probability signals, and that the second combination signal also comprises a ratio of probability signals.
 6. A method for adaptive, context-dependent data-compression and -decompression coding a first digital signal into a second digital signal and for decoding the second digital signal into a third digital signal, the method comprising the steps ofreceiving the first digital signal comprising a number of symbols, generating, in response to the first digital signal, a fourth digital signal comprising at least one probability signal, coding the first digital signal into the second digital signal by using the fourth digital signal, generating, in response to the third digital signal, a fifth digital signal comprising at least one probability signal, decoding the second digital signal into the third digital signal by using the fifth digital signal, storing in a first memory field at least first information relating to at least two probability signals, and second information relating to at least a first number of symbols having a first value and a second number of symbols having a second value, storing in a second memory field at least third information relating to at least two probability signals, and fourth information relating to at least a third number of symbols having a first value and a fourth number of symbols having a second value, and adapting the information in response to a further received symbol, characterized in that the method comprises the steps ofcombining at least two probability signals into a first combination signal, the first information being a function of this first combination signal, combining at least two probability signals into a second combination signal, the third information being a function of this second combination signal, combining at least two probability signals into a third combination signal, and converting the third combination signal into at least one probability signal.
 7. The method according to claim 6, characterized in that the first combination signal comprises a ratio of probability signals, and that the second combination signal also comprises a ratio of probability signals. 